		<div class="sidebar">
			<div class="sidebar_title">
				天气预报
			</div>
			<div class="sidebar_content sidebar_weather">
				<iframe src="http://m.weather.com.cn/m/pn12/weather.htm?id=101200101T " width="245" height="110" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
			</div>
<!-- 			<div class="sidebar_title">
				本期投票
			</div> -->
			<div class="sidebar_title">
				每日主打
			</div>
			<div class="sidebar_content sidebar_song">
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=243 ORDER BY `essay_updatetime` DESC LIMIT 0,1";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_content'];

?>
				<p>主打歌曲：<?=$title?></p>
<!--  				<object type="application/x-shockwave-flash" data="../src/dewplayer.swf" width="200" height="25" id="dewplayer" name="dewplayer">
 									<param name="wmode" value="transparent" />
 									<param name="movie" value="../src/dewplayer.swf" />
 									<param name="flashvars" value="mp3=&amp;autostart=0&amp;autoreplay=1" /> 
 								</object> -->
				<?=$content?>
<?php } ?>
			</div>
			<div class="sidebar_title">
				青春纪念册
			</div>
			<div class="sidebar_content sidebar_pic">
				<ul>
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=235 ORDER BY `essay_updatetime` DESC LIMIT 0,4";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_content'];

?>
					<li><a href="./?view-<?=$essayid?>.htm"><img src="../youngth/<?=getinfobywhere('attachment','path',"attachment_essayid=$essayid")?>" alt="" /></a><span class="sidebar_pic_w"><a href="./?view-<?=$essayid?>.htm"><?=utf8Substr($title,'0','19')?></a></span></li>
<?php } ?>
				</ul>
			</div>
			<div class="sidebar_title">
				<a href="./?class-<?=getinfo(236,'englishname','categories')?>.htm">校园海报</a>
			</div>
			<div class="sidebar_list">
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=236 ORDER BY `essay_updatetime` DESC LIMIT 0,2";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_content'];
	$intro=$row['essay_intro'];

?>
				<div class="pic_list">
					<a href="./?view-<?=$essayid?>.htm"><img src="../youngth/<?=getinfobywhere('attachment','path',"attachment_essayid=$essayid")?>" alt="" width="105px" height="80px"/></a>
					<div class="nanhu_posts"><a href="./?view-<?=$essayid?>.htm"><?=utf8Substr($title,'0','70')?></a></div>
				</div>
<?php } ?>					
			</div>
		</div>
